package com.cs.peanut.base_app;

import android.app.Application;
import android.content.Intent;

import com.cs.peanut.base_app.service.MyService;

/**
 * Created by peanut on 2018/06/12.
 */

public class BaseApp extends Application {
    public static BaseApp _instance;

    @Override
    public void onCreate() {
        super.onCreate();
        _instance = this;
        Intent intent = new Intent(this,MyService.class);
        startService(intent);
    }

    public static BaseApp getApplication() {
        return _instance;
    }
}
